import config from "./config";

import axios from "axios";


export function getBannerList(){
	return axios.get(`${config.host}/banner`);
}



export function getRecommend(){
	return axios.get(`${config.host}/recommend`);
}


export function getActivity(){
	return axios.get(`${config.host}/activity`);
}

export function getGoodsDetail(id){
	return axios.get(`${config.host}/detail/${id}`);
}


export function getProductlist(params){
	return axios.get(`${config.host}/productlist`,{
		params:params
	});
}
